package io.cloud.tec.project.en;

import io.cloud.tec.project.util.ObjectGenerateUtil;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Document(indexName = "account")
public class Account {
    @Id
    String id = ObjectGenerateUtil.generateRandomString(8);
    String name = ObjectGenerateUtil.generateRandomString(16);
    Integer loginCount = (int) (Math.random() * 1000);
    LocalDate lastLoginDate;
    LocalDateTime dateTimestamp;
    LocalTime timestamp;
}
